package com.jvtd.eyl.widget.adapter;

import android.databinding.ViewDataBinding;

import com.jvtd.eyl.BR;
import com.jvtd.eyl.R;
import com.jvtd.eyl.bean.binding.ClassBean;
import com.jvtd.widget.adapter.JvtdQuickAdapter;
import com.jvtd.widget.adapter.viewHolder.JvtdViewHolder;

import java.util.ArrayList;

/**
 * 期刊二级分类条目
 *
 * 作者:chenlei
 * 时间:2018/11/13 4:35 PM
 */
public class SecondaryClassAdapter extends JvtdQuickAdapter<ClassBean,JvtdViewHolder> {
    public SecondaryClassAdapter() {
        super(R.layout.adapter_secondary_class, new ArrayList<>());
    }

    @Override
    protected void convert(JvtdViewHolder helper, ClassBean item) {
        ViewDataBinding binding = helper.getBinding();
        binding.setVariable(BR.itemBean,item);
        binding.executePendingBindings();
    }
}
